home *** CD-ROM | disk | FTP | other *** search
- Path: arctic-0.vf.pond.com!user
- From: tkuntz@pond.com (Tim Kuntz)
- Newsgroups: comp.lang.c
- Subject: Very Beginner Question with Think C
- Date: Wed, 24 Jan 1996 17:43:18 -0400
- Organization: FishNet
- Message-ID: <tkuntz-2401961743180001@arctic-0.vf.pond.com>
- NNTP-Posting-Host: arctic-0.vf.pond.com
-
- Hi-
- I'm taking a course in C at the local Community College and we were to
- enter, compile and run the following program:
-
- #include "stdio.h"
-
- main()
- {
- int num;
- float f;
-
- printf("Enter and integer: ");
- scanf("%d", &num);
-
- printf("Enter a floating point number: ");
- scanf("%f", &f);
-
- printf("%d ", num);
- printf("%f", f);
- }
-
- My problem is that when I run it on my Think C compiler at home I get the
- message 'link failed'. What am I doing wrong?
-
- My class works on DOS IBM compatible machines and I assume it will work at
- school. I was just hoping to be able to do some work at home on my Mac.
-